home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / love4th.zip / DOSCMD.DOC < prev    next >
Text File  |  1991-10-01  |  2KB  |  42 lines

  1.                Using DOS Commands in LOVE-83Forth
  2.                ==================================
  3.  
  4. L.O.V.E. Forth can invoke the MSDOS command interpreter to perform
  5. tasks such as deleting files, copying files or displaying the contents
  6. of a directory, with a simple and flexible DOS command. The DOS command
  7. is a Forth word in the TOOLBOX vocabulary
  8.  
  9. To use the DOS command interactively just type:
  10.  
  11.        DOS
  12.  
  13.        followed by the MSDOS command that is desired and press the
  14.        <return> key.
  15.  
  16.        Example:
  17.  
  18.        DOS dir/w  <cr>
  19.  
  20.        will display the contents of the current directory and then
  21.        return to Forth.
  22.  
  23.  
  24.         DOS commands can be embedded in source code screens or in text
  25. files with the restriction that there be no other Forth words on that
  26. line after the actual MSDOS command appears. The reason for this is
  27. that L.O.V.E. Forth passes all the information after the word DOS up to
  28. the carriage return character if interpreting from the keyboard or a
  29. text file, or up to the end of a screen line if interpreting from a
  30. block.  Any Forth words on the rest of that line will confuse the MSDOS
  31. command interpreter.
  32.  
  33. If a programmer desires to remain in the shell of the command interpreter
  34. for an extended period the DOS command can be used to invoke a new shell
  35. by stating:
  36.  
  37.        DOS   <cr>
  38.  
  39.        The MSDOS prompt will appear on the display.
  40.        To return to Forth the word "exit" must be typed to exit from the
  41.        shell.
  42.